package com.lionel.vo;

import java.io.Serializable;

/**
 * @author: liucan
 * @Date: 2019/2/3 10:16
 * @desc:
 **/
public class Result implements Serializable {
    private Boolean success;
    private String msg;
    private Object data;

    public Boolean getSuccess() {
        return success;
    }

    public void setSuccess(Boolean success) {
        this.success = success;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }

    public Result(Boolean success, String msg) {
        this.success = success;
        this.msg = msg;
    }

    public Result() {
    }

    public static Result failure(String msg){
        return new Result(false,msg);
    }
    public static Result success(String msg){
        return new Result(true,msg);
    }
}
